import junit.framework.Test;
import junit.framework.TestSuite;

public class SuiteOfTests extends TestSuite {
    private static final Class[] testClasses = {
        TestBoard.class,
        TestRandomBoard.class,
        TestMiniMax.class,
        TestNegaMax.class,
        TestEvalMirroredBoards.class,
    };

    public SuiteOfTests() {
        for (Class c : testClasses) {
            addTestSuite(c);
        }
    }

    public static void main(String[] args) {
        String[] arg = { "SuiteOfTests" };
        if (args.length == 1 && args[0].equals("text")) {
            junit.textui.TestRunner.main(arg);
        } else {
            junit.swingui.TestRunner.main(arg);
        }
    }

    public static Test suite() {
        return new SuiteOfTests();
    }
}
